home *** CD-ROM | disk | FTP | other *** search
- /************************************************/
- /* Sample DLL's */
- /* Copyright © Vincent Parsons 1989. */
- /************************************************/
- /* DLL code for MPW C 3.0 or THINK C 4.0 */
- /* with Excel for the Macintosh 2.2 */
- /* and Microsoft C 5.1 */
- /* with Excel for Windows 2.1 */
- /************************************************/
- /* SampJJ is an example of one data type J */
- /* input and one data type J output. The */
- /* output is the lower 16 bits of the type J */
- /* input. */
- /************************************************/
- /* =REGISTER("SampDLLs","SampJJ","JJ") */
- /* for both the Mac and the PC. */
- /************************************************/
-
- #include "DLL.h"
-
- #if applec
- #include <Types.h>
-
- #elif MSDOS
- #include <windows.h>
-
- #endif
-
- #if THINK_C
- pascal unsigned long main(unsigned long u1); /* prototype */
-
- pascal unsigned long main(u1)
- unsigned long u1;
-
- #elif applec
- pascal unsigned long SampJJ(unsigned long u1)
-
- #elif MSDOS
- unsigned long far pascal SampJJ(unsigned long u1)
- #endif
- {
- return ( u1 & 0x0000FFFF );
- }
-
- /************************************************/
-